gdkgl: Check for GLsync before using it
authorBenjamin Otte <otte@redhat.com>
Sat, 1 Jul 2023 20:46:47 +0000 (22:46 +0200)
committerSimon McVittie <smcv@debian.org>
Wed, 8 Nov 2023 16:30:21 +0000 (16:30 +0000)
commite44df408d6c09e909893ef6ab9993fe2532d106a
treea463101f691df0c89aa51ab6c09e5791330ae7b9
parent9a4bb502f4858bf7c33deea84ff2bf25e2cb5e94
gdkgl: Check for GLsync before using it

Copy what we do in GTK4: Check for GL >= 3.2 or GLES >= 3.0 or the
GL_ARB_sync extension.
Then store that info for a (private) gdk_gl_context_has_sync()
function.
And then check that function before using GLsync objects as introduced
by commit 9811485990b.

Bug: https://gitlab.gnome.org/GNOME/gtk/-/issues/5749
Forwarded: https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/6162
Origin: 3.24.39, commit:cf7decae1a1a2af825caca8da018ce09cd9ce31a

Gbp-Pq: Name gdkgl-Check-for-GLsync-before-using-it.patch
gdk/gdkgl.c
gdk/gdkglcontext.c
gdk/gdkglcontextprivate.h